package ht.android.zom;

import android.os.Bundle;
import android.view.KeyEvent;

import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;

public class Android13_LBS_Zom extends MapActivity {
	MapView mapView;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		mapView = (MapView) findViewById(R.id.mapView);
		mapView.setBuiltInZoomControls(true);// register zom mobile
		//mapView.setSatellite(true);//see satellite
		mapView.setStreetView(true);//see road -> zoom Out Enough large
	}

	public boolean onKeyDown(int keyCode, KeyEvent event) {// ham nay overide tu
															// Activity
		MapController mc = mapView.getController();
		switch (keyCode) {
		case KeyEvent.KEYCODE_MENU:
			mc.zoomIn();
			break;
		case KeyEvent.KEYCODE_3:
			mc.zoomOut();
			break;
		}
		return super.onKeyDown(keyCode, event);
	}

	@Override
	protected boolean isRouteDisplayed() {
		// TODO Auto-generated method stub
		return false;
	}
}